/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package _bai02_phantichphankhaibao;

import java.awt.Color;
import javax.swing.text.MutableAttributeSet;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;

/**
 * 
 * @author Administrator
 */
public class jClass_CacStyleChuoi {
    public MutableAttributeSet mChuThuong;
    public MutableAttributeSet mTenHam;
    public MutableAttributeSet mTenBien;
    public MutableAttributeSet mKieuDuLieu;
    public jClass_CacStyleChuoi() {
        //Tạo AttributeSet chữ bình thường
        mChuThuong = new SimpleAttributeSet();
        StyleConstants.setForeground(mChuThuong, Color.BLACK);
        StyleConstants.setItalic(mChuThuong, false);
        StyleConstants.setBold(mChuThuong, false);

        //Tạo AttributeSet tên hàm
        mTenHam = new SimpleAttributeSet();
        StyleConstants.setForeground(mTenHam, Color.BLACK);
        StyleConstants.setBold(mTenHam, true);

        //Tạo AttributeSet tên biến
        mTenBien = new SimpleAttributeSet();
        StyleConstants.setForeground(mTenBien, Color.MAGENTA);

        //Tạo AttributeSet kiểu dữ liệu
        mKieuDuLieu = new SimpleAttributeSet();
        StyleConstants.setForeground(mKieuDuLieu, Color.BLUE);
    }
}
